package org.lboot.llog.event;


import lombok.Getter;
import lombok.extern.slf4j.Slf4j;
import org.lboot.llog.domain.ApiLogDTO;
import org.springframework.context.ApplicationEvent;

import java.time.Clock;

/**
 * @author kindear
 * 日志生成事件
 */
@Slf4j
@Getter
public class ApiLogCreatedEvent extends ApplicationEvent {
    ApiLogDTO apiLog;
    public ApiLogCreatedEvent(Object source, ApiLogDTO apiLog) {
        super(source);
        this.apiLog = apiLog;
    }

    public ApiLogCreatedEvent(Object source, Clock clock) {
        super(source, clock);
    }
}
